
package com.amaze.escape.blocks;

import org.lwjgl.util.vector.Vector2f;
import org.lwjgl.util.vector.Vector4f;

import com.amaze.escape.Helper;

/**
 * A tree trunk.
 * 
 * @author Amaze Team
 */
public class BlockTreeTrunk extends Block {
    @Override
    public Vector2f getTextureOffsetFor(Block.SIDE side) {
        if (side == SIDE.LEFT || side == SIDE.RIGHT || side == SIDE.FRONT || side == SIDE.BACK) {
            return Helper.getInstance().calcOffsetForTextureAt(4, 1);
        } else {
            return Helper.getInstance().calcOffsetForTextureAt(5, 1);
        }
    }
}
